<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="{{ url_for('static', filename='images/favicon.ico') }}">

    <title>june论坛后台管理系统登录</title>

    <!-- Bootstrap core CSS -->
    <link href="{{ url_for('static', filename='bootstrap/css/bootstrap.min.css') }}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="{{ url_for('static', filename='cms/css/signin.css') }}" rel="stylesheet">

</head>

<body>

<div class="container">

    <form class="form-signin" method="post">
        <h2 class="form-signin-heading text-center">后台登录</h2><br>
        <label for="inputEmail" class="control-label">邮箱:</label>
        {% if email %}
            <input type="email" id="inputEmail" class="form-control" name="email" value="{{ email }}"
                   placeholder="请输入邮箱" required autofocus><br>
        {% else %}
            <input type="email" id="inputEmail" class="form-control" name="email" placeholder="请输入邮箱" required
                   autofocus><br>
        {% endif %}
        <label for="inputPassword" class="control-label">密码:</label>
        <input type="password" id="inputPassword" class="form-control" name="password" placeholder="请输入密码" required>
        <div class="checkbox">
            <label>
                <input type="checkbox" value="1" name="remember"> 记住我
            </label>
        </div>
        <button class="btn btn-lg btn-primary btn-block" type="submit">立即登录</button>
        <input type="hidden" value="{{ csrf_token() }}" name="csrf_token">
    </form>
    {% for msg in get_flashed_messages(category_filter=['suc']) %}
        <div class="alert alert-info text-center" role="alert">{{ msg }}</div>
    {% endfor %}
    {% for msg in get_flashed_messages(category_filter=['err']) %}
        <div class="alert alert-info text-center" role="alert">{{ msg }}</div>
    {% endfor %}

</div> <!-- /container -->

</body>
</html>
